<template>
	<view class="back-view">
		<view class="view-background"></view>
		<view class="white-view-back">
			<view class="top-back">
				<view class="top-name">编辑</view>
				<view class="close-back" @click="closeBtnAction">
					<image class="close-img" src="../../../static/close.png"></image>
				</view>
			</view>

			<view class="top-line"></view>
			<view>


				<view class="item-back">
					<view style="display: flex;">
						<view class="item-name">关联客户</view>
						<view class="item-name-des">:</view>

					</view>
					<uniselect v-model="baseFormData.classifyId" :localdata="typeRange" @change="change" :clear="false">
					</uniselect>
					<dataSelect v-model="clientValue" :localdata="clientRange" @change="clientChange"></dataSelect>
				</view>
				<view class="item-back">
					<view style="display: flex;">
						<view class="item-name">咨询领域</view>
						<view class="item-name-des">:</view>
					</view>
					<dataSelect v-model="clientValue" :localdata="clientRange" @change="clientChange"></dataSelect>
				</view>
				<view class="item-back">
					<view style="display: flex;">
						<view class="item-name">希望我们</view>
						<view class="item-name-des">:</view>
					</view>

					<dataSelect v-model="clientValue" :localdata="clientRange" @change="clientChange"></dataSelect>
				</view>

				<view class="item-back ">
					<view style="display: flex;">
						<view class="item-name">咨询内容</view>
						<view class="item-name-des">:</view>
					</view>
					<view class="item-textArea-back">
						<textarea class="item-textArea"></textarea>
					</view>

				</view>
				<view class="item-back">
					<view style="display: flex;">
						<view class="item-name">上传文件</view>
						<view class="item-name-des">:</view>
					</view>
					<view>
						<image class="item-file-add" src="../../../static/pc_add_file.png"></image>
						<view style="display: flex; align-items: center;">
							<image class="item-img" src="../../../static/phone/case-detail-word.png"></image>
							<view class="item-file-name">文件名称文件名称文件名称文件名称.xls</view>
							<image class="item-file-cancel" src="../../../static/cancel.png"></image>
						</view>
						<view style="display: flex; align-items: center;">
							<image class="item-img" src="../../../static/phone/case-detail-excel.png"></image>
							<view class="item-file-name">文件名称文件名称文件名称文件名称.xls</view>
							<image class="item-file-cancel" src="../../../static/cancel.png"></image>

						</view>
					</view>

				</view>



			</view>
			<view class="bottom-back">
				<view class="bottom-btn bottom-btn-cancel">取消</view>
				<view class="bottom-btn">保存</view>
				<view class="bottom-btn">提交</view>
			</view>
		</view>
	</view>
</template>

<script>
	import uniselect from "@/packageC/PhonePC/components/uni-data-select/uni-data-select.vue"
	
	import dataSelect from "@/components/data-select/dataselect.vue"
	export default {
		components: {
			dataSelect,
			uniselect
		},
		data() {
			return {
				clientValue: 0,
				clientRange: [{
						value: 0,
						text: "篮球"
					},
					{
						value: 1,
						text: "足球"
					},
					{
						value: 2,
						text: "游泳"
					},
				],
				typeRange:[],
			}
		},
		onLoad() {

		},
		methods: {
			change(e) {
				console.log("e:", e);
				// for(var i = 0;i <this.classArr.length;i++){
				// 	if(e == this.classArr[i].id){
				// 	this.selectClass = 	this.classArr[i];
				// 	return;
				// 	}
				// }
			},
			clientChange(e) {
				console.log("e:", e);
			},
			closeBtnAction() {
				this.$emit('consultClose')
			}
		},
	}
</script>

<style>
	.back-view {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 9999;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.view-background {
		position: absolute;
		width: 100%;
		height: 100%;
		z-index: -1;
		background-color: rgba(0, 0, 0, 0.3);
	}

	.white-view-back {
		width: 60%;
		padding: 24px;
		max-height: 80%;
		background-color: white;
		margin-top: -70px;
		border-radius: 4px;
	}

	.top-back {
		display: flex;
		justify-content: space-between;
	}

	.top-name {
		font-size: 18px;
		font-weight: normal;
		color: #333333;

	}

	.close-back {
		cursor: pointer;
		width: 20px;
		height: 20px;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.close-img {
		width: 12px;
		height: 12px;
	}

	.top-line {
		height: 1px;
		background: #EEEEEE;
		width: 100%;
		margin-top: 20px;
		margin-bottom: 20px;
	}

	.item-back {
		display: flex;
		align-items: flex-start;
		margin-bottom: 10px;
	}


	.item-name {
		font-size: 14px;
		font-weight: 500;
		color: #333;
		width: 60px;
		min-width: 60px;
		text-align: justify;
		text-align-last: justify;
		display: inline-block;
	}

	.item-name-des {

		font-size: 14px;
		font-weight: 500;
		color: #333;
		margin-right: 16px;
	}

	.item-file-name {
		font-size: 12px;
		font-weight: 400;
		color: #333333;
	}

	.item-content {
		font-size: 14px;
		font-weight: 400;
		color: #333333;
	}

	.item-textArea {
		margin: 10px;
		width: auto;
		height: 72px;
	}

	.item-textArea-back {
		border-radius: 2px;
		width: 100%;
		border: 1px solid #EEEEEE;

	}

	.item-file-add {
		width: 37px;
		height: 37px;
		border: 1px solid #eee;
	}

	.item-img {
		width: 24px;
		height: 24px;
		min-width: 24px;
		margin-right: 8px;
	}

	.item-file-cancel {
		width: 14px;
		height: 14px;
		margin-left: 10px;
	}

	.bottom-back {
		margin-top: 20px;
		width: 100%;
		min-height: 30px;
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}

	.bottom-btn {
		cursor: pointer;
		width: 104px;
		height: 32px;
		background: #2DA9C5;
		border-radius: 2px;
		color: #FFFFFF;
		font-size: 14px;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-left: 10px;
	}

	.bottom-btn-cancel {
		background: #FFFFFF;
		border: 1px solid #EEEEEE;
		color: #333333;
	}
</style>
